import assessCheckApi from './api'
import { axios } from '@/utils/request'

// 流程列表-我的已办
export function myJobPage(params){
  return axios({
    url: assessCheckApi.myJobPage,
    method:'get',
    params:{...params},
    url_2:'outside',
  })
}

// 流程监控-分页查询
export function flowJkPage(params){
  return axios({
    url: assessCheckApi.flowJkPage,
    method:'get',
    params:{...params},
    url_2:'outside',
  })
}

// 查询当前流程任务详情-通过当前流程任务id
export function queryJobByJobId(params){
  return axios({
    url: assessCheckApi.queryJobByJobId,
    method:'get',
    params:{...params},
    url_2:'outside',
  })
}

// 自定义-退回环节
export function returnUpperzdyFlowJob(data){
    return axios({
      url: assessCheckApi.returnUpperzdyFlowJob,
      method:'post',
      data:{...data},
      url_2:'outside',
    })
  }

  // 获取已办列表-通过当前流程id-自定义退回
export function queryAllYbJob(params){
    return axios({
      url: assessCheckApi.queryAllYbJob,
      method:'get',
      params:{...params},
      url_2:'outside',
    })
  }
